package com.meichis.yndms.repository.manager;

import android.text.TextUtils;

import com.meichis.mcsappframework.utils.SharePreferenceUtil;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-05-20 15:41
 */
public class TokenManager {
    private static String token;

    public static String getToken() {
        if (TextUtils.isEmpty(token)) {
            token = (String) SharePreferenceUtil.getInstance().getCacheValue(SharePreferenceUtil.PREFERENCES_AUTHKEY);
        }
        return token;
    }

    public static void setToken() {
        TokenManager.token = "";
    }
}
